package cn.smart.test.self;

import cn.easy.common.pojo.DataViewPojo;
import cn.easy.mapper.*;
import cn.easy.pojo.*;
import cn.easy.vo.SensorVo;
import cn.easy.vo.TriggerInfoVo;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.ContextHierarchy;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.Date;
import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextHierarchy(@ContextConfiguration(name = "parent", locations = {"classpath:/META-INF/spring/applicationContext-*.xml"}))

public class Demo {
    @Autowired
    private DataMapper dataMapper;
    @Autowired
    private UserMapper userMapper;
    @Autowired
    private SensorMapper sensorMapper;
    @Autowired
    private DeviceMapper deviceMapper;
    @Autowired
    private EasytriggerMapper easytriggerMapper;
    @Test
    public void tt(){
        List<TriggerInfoVo> list = easytriggerMapper.getSensorAllTriggers(1);
        System.out.println("ok");
    }
}
